<!DOCTYPE html>
<html class="ui-page-login">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title></title>
    <link href="__PUBLIC__/mui/css/mui.css" rel="stylesheet" />
    <script src="__PUBLIC__/js/angular.js"></script>
    <script src="__PUBLIC__/js/angular-sanitize.js"></script>
    <script src="__PUBLIC__/js/angular-sanitize.min.js"></script>
    <script src="__PUBLIC__/common.js"></script>
    <link rel="stylesheet" href="__PUBLIC__/css/cart.css">
    <style>
        .area {
            margin: 20px auto 0px auto;
        }
        .mui-input-group:first-child {
            margin-top: 20px;
        }
        .mui-input-group label {
            width: 22%;
        }
        .mui-input-row label~input,
        .mui-input-row label~select,
        .mui-input-row label~textarea {
            width: 78%;
        }
        .mui-checkbox input[type=checkbox],
        .mui-radio input[type=radio] {
            top: 6px;
        }
        .mui-content-padded {
            margin-top: 25px;
        }
        .mui-btn {
            padding: 10px;
        }
        .mui-input-row label~input, .mui-input-row label~select, .mui-input-row label~textarea{
            margin-top: 1px;
        }
        .cart span{
            font-size: 14px;
            font-family: "Microsoft YaHei UI";
            text-indent: 2em;
            display: block;
        }
    </style>
</head>

<body style="background: white" ng-app="myApp" ng-controller="Ctrl" ng-cloak>
<header class="mui-bar mui-bar-nav" style="background: #ef373b;" >
    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" id="cart-edit" style="color: white  "></a>
    <h1 class="mui-title" style="color: white ">常见问题</h1>
</header>
<div style="height: 44px">

</div>
<div class="mui-content cart"style="padding: 10px 15px;background: white" >
    <h4 style="text-align: center;padding-right: 15px">{{notice.title}}</h4>
    <span  ng-bind-html="notice.content | to_trusted"></span>
    <p class='mui-ellipsis mui-text-right'style="margin-right: 3em;margin-top: 1em">{{notice.updatetime}}</p>
</div>
<script src="__PUBLIC__/mui/js/mui.js"></script>
</body>
<script>
    var app = angular.module('myApp', []);
    app.filter('to_trusted', ['$sce', function ($sce) {
        return function (text) {
            return $sce.trustAsHtml(text);
        };
    }]);
    app.controller('Ctrl', function($scope,$http) {
        $http({
            method: 'GET',
            url: "/index.php/Home/Index/questionDetail?id="+getUrlParam('id')
        }).then(function successCallback(response) {
            console.log(response.data.data)
            $scope.notice = response.data.data
        }, function errorCallback(response) {
        });
    });
</script>
</html>